<template>
    <div>
        <searchDebItemComponet
            v-for="deb in searchResult"
            :key="deb.deb_id"
            :deb="deb"
            @click.native="gotoDetail(deb.deb_id)"
        ></searchDebItemComponet>
    </div>
</template>

<script>
import searchDebItemComponet from "../components/searchDebItem";
export default {
    name: "search",
    components: { searchDebItemComponet },
    data() {
        return {};
    },
    computed: {
        searchResult() {
            return this.$store.state.searchResult;
        },
    },
    mounted() {},
    methods: {
        gotoDetail(debId) {
            this.$router.push({ path: "detail/" + debId });
        },
    },
};
</script>

<style>
</style>